package com.example.reschain.demo03.service;

import com.example.reschain.demo02.OrderContext;
import com.example.reschain.demo03.AbstractOrderHandle;
import org.springframework.core.Ordered;
import org.springframework.stereotype.Component;

/**
 * @author renyitong
 * @version 1.0.0
 * @createTime 2024年10月09日
 * @Description
 */
@Component
public class RepeatOrderHandle extends AbstractOrderHandle implements Ordered {

    @Override
    public OrderContext handle(OrderContext context) {
        System.out.println("通过seqId，检查客户是否重复下单");
        return context;
    }

    @Override
    public int getOrder() {
        return 1;
    }
}
